<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <body>
        <ui:composition template="./../Template/generalTemplate.xhtml">
            <ui:define name="content">
                <h:form>
                    <p:panel id="search" header="Search Employee" style="height:495px;">
                        <div style="margin-left:300px;margin-right:50px;margin-top:120px;">
                            <h:outputText value="Name:" style="margin-right: 10px;"/>
                            <p:autoComplete id="name" value="#{searchManagedBean.searchName}" required="true" requiredMessage="Name Cannot be Null"  
                    completeMethod="#{searchManagedBean.complete}" />
                            <!--<p:inputText id="name" required ="true" requiredMessage="Name cannot be empty" value="#{searchManagedBean.searchName}" />-->
                            <p:spacer width="20"/>
                            <p:commandButton value="Search" ajax="true" update="statusMessages" actionListener="#{searchManagedBean.searchByName}"/>
                            <p:message for="name"/>
                        </div>
                    </p:panel>
                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>

